package db10;

public class Book {
    private int id;
    private  double prize;
    private String type;
    private String author;
    public Book(int id,double prize,String type,String author){
        this.id=id;
        this.prize=prize;
        this.type=type;
        this.author=author;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public double getPrize() {
        return prize;
    }

    public void setPrize(double prize) {
        this.prize = prize;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String toString(){
        return "Book{"+"id="+id+",price="+prize+",type="+type+",author="+author +'}';
    }
}
